﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;

namespace Slippor.Douban.Radio.Assist
{
    public static class TraceHelper
    {
        public static void TraceLine(String message)
        {
            Trace.WriteLine(String.Format("{0}\t{1}", DateTime.Now, message));
        }

        public static void TraceError(Exception e)
        {
            Trace.WriteLine(String.Format("{0}\t{1}\n{2}\n{3}", DateTime.Now, e, e.Message, e.StackTrace));
        }
    }
}
